package com.hps.notifydemo.bank1.controller;

import com.hps.notifydemo.bank1.entity.AccountPay;
import com.hps.notifydemo.bank1.service.AccountInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @date 2019/12/14 16:05
 */
@RestController
public class AccountInfoController {

    @Autowired
    private AccountInfoService accountInfoService;

    @GetMapping("/payresult/{txNo}")
    public AccountPay result(@PathVariable("txNo") String txNo) {
        return accountInfoService.queryPayResult(txNo);
    }
}
